import intro from './intro/index.js';
// import search from './search/index.js';
import newInterpretation from './new-interpretation/index.js';
import { createPlugins } from '../helper.js';

export default {
    name: "基础聊天模块",
    description: "支持网络搜索、答疑解惑",
    role: '答疑解惑机器人',
    examples: [
        {
            question: '你是谁',
            actions: [
                {
                    thought: '需要介绍我自己',
                    action: '介绍自己',
                    actionInput: [{}],
                }
            ],
            answer: '等待工具输出后统一作答'
        },
        {
            question: '我应该吃什么比较健康',
            actions: [
                {
                    thought: '需要使用通用知识回答用户问题',
                    action: '无',
                    actionInput: [{}],
                }
            ],
            answer: '做一轮思考后回答'
        },
        {
            question: '我应该吃什么看看最近关于阿里巴巴的股价比较健康',
            actions: [
                {
                    thought: '查询近期的股价信息，需要使用网络搜索能力',
                    action: '网络搜索',
                    actionInput: [{"input": "阿里巴巴股价"}],
                }
            ],
            answer: '等待工具输出后统一作答'
        },
        {
            question: '帮我解释一个词汇：非你莫属',
            actions: [
                {
                    thought: '需要调用汉语新解插件',
                    action: '汉语新解',
                    actionInput: [{ input: "非你莫属" }],
                }
            ],
            answer: '等待工具输出后统一作答'
        },
    ],
    children: createPlugins([
        intro,
        // search,
        newInterpretation
    ])
}